#ifndef PROJECTILE_H
#define PROJECTILE_H

#include <QGraphicsItem>

class Ennemis;

class Projectile : public QGraphicsItem
{
private :
    float frappe;

    bool touche;
public:
    Ennemis * cible;
    Projectile(Ennemis *,float);
    float getFrappe(){ return frappe;}
    void paint(QPainter *painter,const QStyleOptionGraphicsItem *option, QWidget *widget);
    QRectF boundingRect() const ;
    virtual void advance(int);
    bool hasTouched(){
        return touche;
    }
};

#endif // PROJECTILE_H
